package com.loto.insurance.oem.web.authority;

import com.loto.insurance.oem.web.enumeration.AuthorityRoleEnum;

public class AuthorityHelper {

	public static boolean hasAuthority(int userRoleId, AuthorityRoleEnum roleId) {
		boolean isAuthoried = false;
		if (userRoleId >= roleId.getIndex())
			isAuthoried = true;
		/*
		 * for (AuthorityRoleEnum role : roleIds) { if (role.getIndex() ==
		 * userRoleId) { isAuthoried = true; break; } }
		 */
		return isAuthoried;
	}
};
